package com.xiaoyy.app.api.core.dao.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * app菜单
 * </p>
 *
 * @author chenzh
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("APP_MENU")
@ApiModel(value="AppMenu对象", description="app菜单")
public class AppMenu extends Model<AppMenu> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单id")
    @TableId(value = "MENU_ID", type = IdType.INPUT)
    private String menuId;

    @ApiModelProperty(value = "标题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "图标名称")
    @TableField("ICON")
    private String icon;

    @ApiModelProperty(value = "图标颜色")
    @TableField("COLOR")
    private String color;

    @ApiModelProperty(value = "链接地址")
    @TableField("LINK_URL")
    private String linkUrl;

    @ApiModelProperty(value = "链接类型：router 内部路由 h5 第三方H5 weixin 第三方微信小程序")
    @TableField("LINK_TYPE")
    private String linkType;

    @ApiModelProperty(value = "内部路由路径")
    @TableField("LINK_PATH")
    private String linkPath;

    @ApiModelProperty(value = "内部路由名")
    @TableField("LINK_NAME")
    private String linkName;

    @ApiModelProperty(value = "描述")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "背景颜色")
    @TableField("BG_COLOR")
    private String bgColor;

    @ApiModelProperty(value = "菜单类型：常用应用  政策咨询 查询")
    @TableField("MENU_TYPE")
    private String menuType;

    @ApiModelProperty(value = "有效状态 0无效 1有效")
    @TableField("STATUS")
    private String status;

    @ApiModelProperty(value = "是否根据标签显示 0 否 1 是")
    @TableField("LABEL_FLAG")
    private String labelFlag;

    @ApiModelProperty(value = "同级类型")
    @TableField("ORDER_NO")
    private Integer orderNo;

    @ApiModelProperty(value = "父菜单id")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "级别")
    @TableField("RATE")
    private Integer rate;

    @ApiModelProperty(value = "操纵期控制规则")
    @TableField("OPERATING")
    private String operating;

    @ApiModelProperty(value = "是否公共方法 0 否 1 是 设置为公共方法，所有人都显示，是否标签显示无效")
    @TableField("PUBLIC_FLAG")
    private String publicFlag;

    @ApiModelProperty(value = "节点类型 0 节点 1 叶子 节点则没有功能具体功能，只显示标题")
    @TableField("NODE_TYPE")
    private String nodeType;

    @ApiModelProperty(value = "菜单属性：person 个人  company 单位  manager 管理 other 其他")
    @TableField("MENU_PRO")
    private String menuPro;

    @ApiModelProperty(value = "自定义参数1")
    @TableField("PARAM1")
    private String param1;

    @ApiModelProperty(value = "自定义参数2")
    @TableField("PARAM2")
    private String param2;

    @ApiModelProperty(value = "自定义参数3")
    @TableField("PARAM3")
    private String param3;

    @ApiModelProperty(value = "自定义参数4")
    @TableField("PARAM4")
    private String param4;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATE_NAME")
    private String createName;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("UPDATE_NAME")
    private String updateName;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除标志 0 正常 1 删除")
    @TableField("DEL")
    private String del;


    @Override
    protected Serializable pkVal() {
        return this.menuId;
    }

}
